//
//  QTBuessinessGoodsCell.m
//  QTLifeCircle
//
//  Created by 王琼 on 17/1/17.
//  Copyright © 2017年 徐腾. All rights reserved.
//

#import "QTBuessinessGoodsCell.h"
#import <UIImageView+WebCache.h>
@interface QTBuessinessGoodsCell()
@property (weak, nonatomic) IBOutlet UILabel *shop_nameLabel;
@property (weak, nonatomic) IBOutlet UIButton *addressLabel;
@property (weak, nonatomic) IBOutlet UIButton *phoneLabel;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *priceLabel;
@property (weak, nonatomic) IBOutlet UILabel *contentLabel;
@property (weak, nonatomic) IBOutlet UIImageView *iconImageView;


@end


@implementation QTBuessinessGoodsCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setModel:(QTGoodsModel *)model
{
    _model = model;
    //店铺图片地址
    NSURL* URL = [NSURL URLWithString:model.icon];
    [self.iconImageView sd_setImageWithURL:URL placeholderImage:[UIImage imageNamed:@"no"]];
    self.shop_nameLabel.text = model.shop_name;
    self.titleLabel.text = model.title;
    
    self.addressLabel.titleLabel.text = model.address;
    self.phoneLabel.titleLabel.text = model.phone;
    
    self.addressLabel.userInteractionEnabled = NO;
    self.phoneLabel.userInteractionEnabled = NO;
    
    self.contentLabel.text = model.content;
    self.priceLabel.text = model.price;

}
@end
